﻿using System;
using AutoClub.Models;

namespace AutoClub.Helper.Tests
{
    public class ViewModelHelper
    {
        public AddRaceModel CreateAddRaceModel(DateTime start, DateTime end, int mechanicMaxAmount, int selectedCategory)
        {
            return new AddRaceModel()
            {
                StartDate = new DateTimeOffset(start),
                EndDate = new DateTimeOffset(end),
                MechanicsMaxAmount = mechanicMaxAmount,
                SelectedCategory = selectedCategory
            };
        }
    }
}
